.class Lcom/xiaomi/notes/NoteListActivity$10;
.super Ljava/lang/Object;
.source "NoteListActivity.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/xiaomi/notes/NoteListActivity;->showInputPasswordDialog()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/xiaomi/notes/NoteListActivity;

.field final synthetic val$text:Landroid/widget/EditText;


# direct methods
.method constructor <init>(Lcom/xiaomi/notes/NoteListActivity;Landroid/widget/EditText;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 866
    iput-object p1, p0, Lcom/xiaomi/notes/NoteListActivity$10;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    iput-object p2, p0, Lcom/xiaomi/notes/NoteListActivity$10;->val$text:Landroid/widget/EditText;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 4
    .parameter "dialog"
    .parameter "which"

    .prologue
    const/4 v3, 0x2

    const/4 v2, 0x0

    .line 869
    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$10;->val$text:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$10;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v0}, Lcom/xiaomi/notes/NoteListActivity;->access$1500(Lcom/xiaomi/notes/NoteListActivity;)[Ljava/lang/Object;

    move-result-object v0

    aget-object v0, v0, v3

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 870
    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$10;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v0, v2}, Lcom/xiaomi/notes/NoteListActivity;->access$1602(Lcom/xiaomi/notes/NoteListActivity;I)I

    .line 871
    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$10;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v0}, Lcom/xiaomi/notes/NoteListActivity;->access$1700(Lcom/xiaomi/notes/NoteListActivity;)Landroid/widget/ImageButton;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/ImageButton;->setVisibility(I)V

    .line 872
    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$10;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v0}, Lcom/xiaomi/notes/NoteListActivity;->access$300(Lcom/xiaomi/notes/NoteListActivity;)Landroid/widget/ListView;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setVisibility(I)V

    .line 873
    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$10;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v0}, Lcom/xiaomi/notes/NoteListActivity;->access$1800(Lcom/xiaomi/notes/NoteListActivity;)V

    .line 887
    :goto_0
    return-void

    .line 875
    :cond_0
    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$10;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v0}, Lcom/xiaomi/notes/NoteListActivity;->access$1608(Lcom/xiaomi/notes/NoteListActivity;)I

    .line 876
    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$10;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v0}, Lcom/xiaomi/notes/NoteListActivity;->access$1600(Lcom/xiaomi/notes/NoteListActivity;)I

    move-result v0

    if-le v0, v3, :cond_1

    .line 877
    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$10;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v0, v2}, Lcom/xiaomi/notes/NoteListActivity;->access$1602(Lcom/xiaomi/notes/NoteListActivity;I)I

    .line 878
    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$10;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v0}, Lcom/xiaomi/notes/NoteListActivity;->access$1500(Lcom/xiaomi/notes/NoteListActivity;)[Ljava/lang/Object;

    move-result-object v0

    const/4 v1, 0x3

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    aput-object v2, v0, v1

    .line 879
    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$10;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    iget-object v1, p0, Lcom/xiaomi/notes/NoteListActivity$10;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v1}, Lcom/xiaomi/notes/NoteListActivity;->access$1500(Lcom/xiaomi/notes/NoteListActivity;)[Ljava/lang/Object;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/xiaomi/notes/Tools;->setConfigData(Landroid/app/Activity;[Ljava/lang/Object;)V

    .line 880
    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$10;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v0}, Lcom/xiaomi/notes/NoteListActivity;->access$1900(Lcom/xiaomi/notes/NoteListActivity;)V

    goto :goto_0

    .line 882
    :cond_1
    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$10;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    const v1, 0x7f05004a

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 884
    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$10;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v0}, Lcom/xiaomi/notes/NoteListActivity;->access$2000(Lcom/xiaomi/notes/NoteListActivity;)V

    goto :goto_0
.end method
